$defaultFontFamily: "Microsoft YaHei", "SimHei", "Arial Unicode MS";
$defaultFontSize: 14px;
$defaultColor: #333;

$sidebarActiveBgColor: #fff;

$sidebarActiveColor: #5bc0de;

$buttonDefaultColor: #ffffff;
$buttonDefaultFocusColor: #ffffff;
$buttonDefaultActiveColor: #e6e6e6;

$buttonSuccessColor: #75ae32;
$buttonSuccessFocusColor: #5f9c18;
$buttonSuccessActiveColor: #375216;

$buttonDangerColor: #c6523b;
$buttonDangerFocusColor: #c63d22;
$buttonDangerActiveColor: #782616;

$buttonInfoColor: #497fe1;
$buttonInfoFocusColor: #286ae2;
$buttonInfoActiveColor: #153775;

$BorderRadius: 3px;
$BorderColor: #d6d6d6;

/**
 * Container Warp
 */
.wrap {
    width: 1200px;
    height: auto;
    margin: 0 auto;
}

.wrap:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
    font-size: 0;
}

.clearfix{
    display: block;
}
.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
    font-size: 0;
}

/**
 * Customer UI
 */

.cf-single-input {
    border-radius: $BorderRadius;
    box-shadow: none;

    &:focus {
        border-color: $buttonSuccessFocusColor;
        box-shadow: none;
        outline: 0;
    }

    &.success {
        border-color: $buttonSuccessFocusColor;
        outline: 0;
    }

    &.error {
        border-color: $buttonDangerFocusColor;
        outline: 0;
    }

    &.error {
        border-color: $buttonDangerFocusColor;

        & + span {
            color: $buttonDangerFocusColor !important;
            border-color: $buttonDangerFocusColor !important;
        }

        & ~ i {
            color: $buttonDangerFocusColor !important;
            border-color: $buttonDangerFocusColor !important;
        }
    }
}

.cf-button {
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    border-radius: $BorderRadius;
    touch-action: manipulation;
    background-image: none;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.42857;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: 0;
    color: #FFF;
    text-decoration: none;

    &a {
        &:hover, &:link, &:active, &:visited {
            text-decoration: none;
        }
    }
}

.cf-button-md {
    width: 140px;
    font-size: 14px;
}

.cf-button-success {
    border: 1px solid $buttonSuccessFocusColor;
    background-color: $buttonSuccessColor;
    color: #FFF;
    cursor: pointer;

    &:focus, &:hover {
        color: #FFF;
        background-color: $buttonSuccessFocusColor;
    }

    &.active {
        color: #FFF;
        background-color: $buttonSuccessActiveColor;
    }
}

.cf-button-danger {
    cursor: pointer;
    border: 1px solid $buttonDangerFocusColor;
    background-color: $buttonDangerColor;
    color: #FFF;

    &:focus, &:hover {
        color: #FFF;
        background-color: $buttonDangerFocusColor;
    }

    &.active {
        color: #FFF;
        background-color: $buttonDangerActiveColor;
    }
}

.cf-button-info {
    cursor: pointer;
    border: 1px solid $buttonInfoFocusColor;
    background-color: $buttonInfoColor;
    color: #FFF;

    &:focus, &:hover {
        color: #FFF;
        background-color: $buttonInfoFocusColor;
    }

    &.active {
        color: #FFF;
        background-color: $buttonInfoActiveColor;
    }
}

.cf-button-default {
    border: 1px solid $buttonDefaultActiveColor;
    color: #333;
    cursor: pointer;
    background-color: $buttonDefaultColor;

    &:focus, &:hover {
        color: #333;
        background-color: $buttonDefaultFocusColor;
    }

    &.active {
        color: #333;
        background-color: $buttonDefaultActiveColor;
    }
}

body {
    font-family: $defaultFontFamily;
    font-size: $defaultFontSize;
    color: $defaultColor;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

ul, li {
    list-style: none;
    display: block;
    padding: 0;
    margin: 0;
}

i, em {
    font-style: normal;
}

h1, p {
    display: block;
    margin: 0;
}

input, button {
    outline: none;

    &:focus {
        outline: none;
    }
}

/**
 * overwirte bootstrap
 */
.btn-default {
    &:hover, &:active, &:focus {
        background-color: #FFF;
        outline: 0;
        border-color: #ccc;
    }
}

.modal-header {
    border-bottom-width: 0;
    padding-bottom: 0;

    .modal-title {
        line-height: 30px;
        font-size: 18px;
    }
}

.modal-backdrop.in {
    opacity: 0;
}

.modal-content {
    position: relative;
    box-shadow: 0 5px 11px rgba(0, 0, 0, 0.2);
    border-radius: $BorderRadius;
}

.modal-sm {
    width: 250px;
}

.modal-info {
    height: 50px;
    width: auto;
    color: 333333;

    span {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 50px;
        height: 50px;

        i {
            display: block;
            width: 30px;
            height: 30px;
            border-radius: 15px;
            margin: 10px 10px;
            line-height: 30px;
            text-align: center;
        }
    }

    h3 {
        font-size: 16px;
        line-height: 50px;
        text-align: left;
        padding-left: 65px;
    }

    &.info {
        background: #FFF;

        span {
            background-color: #ededed;

            i {
                color: #ededed;
                background-color: #a5a5a5;
            }
        }
    }

    &.error {
        background: #c6523b;
        color: #fff;

        span {
            background-color: #bc4330;

            i {
                color: #bc4330;
                background-color: #fff;
            }
        }
    }

    &.success {
        background: #75ae32;
        color: #fff;

        span {
            background-color: #609f29;

            i {
                color: #609f29;
                background-color: #fff;
            }
        }
    }
}

.modal-footer {
    width: 220px;
    margin: 0 auto;
    border-top-width: 0;
}

/**
 * table
 */

.table > tbody > tr > td {
    vertical-align: middle;
}

.table-padding {
    padding: 10px;
}

button {
    outline: none;

    &:focus, &:active, &:visited, &:hover {
        outline: 0;
    }
}

dl, dd, dt {
    display: block;
    margin: 0;
    padding: 0;
}

a {
    color: #333;

    &:hover, &:link, &:active, &:visited {
        text-decoration: none;
    }
}

.cf-navbar {
    z-index: 999;
    position: fixed;
    width: 100%;
    height: 54px;
    top: 0;
    left: 0;
}

.rm-pl {
    padding-left: 0 !important;
}

.rm-m {
    margin-left: 0 !important;
}

.rm-mb {
    margin-bottom: 0 !important;
}

.ml-sm {
    margin-left: 10px !important;
}

.mt-md {
    margin-top: 25px !important;
}

.mt-lg {
    margin-top: 50px !important;
}

.mb-lg {
    margin-bottom: 50px !important;
}